/**
 * AgentProtocolCommissionMapperExt
 * Copyright © 2015 - 2017 
 * All rights reserved.
 * -----------------------------------
 * 2018-04-14  Created
 */
package com.lzy.product.dao;

import com.lzy.product.dtos.agent.AgentProtocolCommissionDto;
import com.lzy.product.entity.AgentProtocol;
import com.lzy.product.entity.AgentProtocolCommission;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

@Resource
public interface AgentProtocolCommissionMapperExt extends AgentProtocolCommissionMapper {

    List<AgentProtocolCommissionDto> selectByProtocolId(@Param("protocolId") Long protocolId);

    Boolean deleteByProtocolId(@Param("protocolId") Long protocolId);

    List<AgentProtocolCommissionDto> selectByProtocolIdAndSystemId(@Param("protocolId") Long protocolId, @Param("systemId") Long systemId, @Param("isFirst") Integer isFirst);

    AgentProtocolCommissionDto selectByProtocolIdAndSystemIdAndPromoteId(@Param("protocolId") Long protocolId, @Param("systemId") Long systemId, @Param("promoteId") Long promoteId);

    List<AgentProtocolCommissionDto> query(@Param("param") AgentProtocolCommissionDto dto);
}